﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{
    /// <summary>
    /// 版权表
    /// </summary>
    public class Copyright:BaseEntity
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "版权名称")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(255), Column(TypeName = "varchar(255)")]
        [Display(Name = "版权信息")]
        public string Details { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(200), Column(TypeName = "varchar(200)")]
        [Display(Name = "版权图片")]
        public string Images { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(255), Column(TypeName = "varchar(255)")]
        [Display(Name = "Loge")]
        public string Logo { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(100), Column(TypeName = "varchar(100)")]
        [Display(Name = "公司地址")]
        public string Address { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "联系方式1")]
        public string Tel1 { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "联系方式2")]
        public string Tel2 { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "QQ1")]
        public string QQ1 { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "QQ2")]
        public string QQ2 { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "电子邮件")]
        public string Email { get; set; }
    }
}
